package com.example.javalib;

import java.text.DateFormat;
import java.util.Date;

/**
 * @author wdl
 */
public class MyClass {
    public static String getNowDateString(){
        String dateTimeString= DateFormat
                .getDateInstance(DateFormat.MEDIUM)
                .format(new Date());
        return dateTimeString;
    }
    public static void main(String[] args) {
        //用于测试静态类输出
        System.out.println(getNowDateString());
    }
}
